<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>招聘考试管理</title>
		<script src="js/global.js" type="text/javascript" charset="utf-8"></script>

	</head>

	<body>
		<table id="shijuan" border="1">
			<tr>
				<td rowspan="2">市场类</td>
				<td colspan="3">试题二级分类</td>
				<td colspan="2">可用试题名称</td>
				<td colspan="2">出题数量</td>
			</tr>
			<tr>

				<td colspan="3"></td>
				<td colspan="2"></td>
				<td colspan="2"><input id="pdjdate" name="pdjdate" type="text" disabled="disabled" style="width:80px;"></td>
			</tr>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeUserForm()">取消</a>
		</table>
	</body>
		<script type="text/javascript">
			var table=document.getElementById("shijuan");
			for (var i=1;i<3;i++) {
				var tr=document.createElement("tr");
					if(i==1){
						var tdr=document.createElement("td");
						tdr.rowSpan=2;
						tdr.innerText=1;
						tr.appendChild(tdr)
						for (var j=1;j<4;j++) {
							var td=document.createElement("td");
							if(j==1){
								td.colSpan=3;
								td.innerText="试题二级分类";
							}else if (j==2) {
								td.colSpan=2;
								td.innerText="可用试题名称";
							} else{
								td.colSpan=2;
								td.innerText="出题数量";
							}
							tr.appendChild(td)
							
						}
					}else{
						for (var j=1;j<4;j++) {
							var td=document.createElement("td");
							if(j==1){
								td.colSpan=3;
								td.innerText="";
							}else if (j==2) {
								td.colSpan=2;
								td.innerText="";
							} else if (j==3){
								td.colSpan=2;
								var txt=document.createElement("input");
								txt.type="text";
								txt.id="aaa";
								td.appendChild(txt);
							}
							tr.appendChild(td)
							
						}
					}
					
				table.appendChild(tr)
			}
			function closeUserForm(){
				var a=$("#aaa").val();
				alert(a)
			}
		</script>
<!--	<script>
		var table = document.createElement("table");
		table.border = 1;
		table.width = "100%"; //创建 tbody	
		var tbody = document.createElement("tbody");
		table.appendChild(tbody);
		//创建第一行
		tbody.insertRow(0);
		tbody.rows[0].insertCell(0);
		tbody.rows[0].cells[0].appendChild(document.createTextNode("cell 1,1"));
		tbody.rows[0].insertCell(1);
		tbody.rows[0].cells[1].appendChild(document.createTextNode("cell 2,1")); 
		//创建第二行
		tbody.insertRow(1);
		tbody.rows[1].insertCell(0);
		tbody.rows[1].cells[0].appendChild(document.createTextNode("cell 2,1"));
		tbody.rows[1].insertCell(1);
		tbody.rows[1].cells[1].appendChild(document.createTextNode("cell 2,2")); //将表格添加到文档主体中		
		document.body.appendChild(table);
	</script>-->
	
</html>